package com.wish.wishsystem_management.service;

import com.wish.wishsystem_management.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import dto.systemDto.SysUserDto;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统用户 服务类
 * </p>
 *
 * @author zhaiwj
 * @since 2021-03-22
 */
public interface ISysUserService extends IService<SysUser> {
    /**
     * 用户列表
     *
     * @param sysUserDto
     * @return
     */
    List<SysUser> selectPageVo(SysUserDto sysUserDto);

    /**
     * 根据用户Id查询对象
     *
     * @param userId
     * @return
     */
    SysUser queryObject(Long userId);

    /**
     * 根据用户Id批删
     *
     * @param userIds
     */
    void deleteBatch(Long[] userIds);

    /**
     * 根据手机号获取用户
     *
     * @param mobile
     * @return
     */
    SysUser getSysUserByMobile(String mobile);

    /**
     * 查询用户列表
     */
    List<SysUser> queryList(Map<String, Object> map);

    /**
     * 修改用户
     */
    void update(SysUser sysUser);

    /**
     * 保存用户
     */
    void saveSysUser(SysUser sysUser);


    List<SysUser> queryList2(Long deptId, Integer id);

    void updateUser2(SysUser user);


    SysUser getUserById(Long userId);
    void register(SysUser register);

    void update3(SysUser sysUserEntity);

    SysUserDto getBusinessIdByUserId(String username);
}
